Repository navigation
feat(companion): same-account zero-click connect, sign-out revocation, and pairing beacon - #80
Merged
DimoADE merged 1 commit intoNov 19, 2026
Conversation
DorJay007
force-pushed
the
feat/companion-seamless-connect-and-ota
branch
from
November 19, 2026 11:14
38bb62a to
f55f1eb
Compare
…, and pairing beacon
DimoADE
force-pushed
the
feat/companion-seamless-connect-and-ota
branch
from
November 19, 2026 11:59
f55f1eb to
26a633b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rebased cleanly onto
DimoADE/Dimo:master(v0.5.1) and resolved all CI, schema, merge-conflict, and security issues from the earlier branch:sequenceDiagram participant Mobile participant Host as Dimo Host (crates/server) participant Site as Dimo Account API Mobile->>Host: POST /api/v1/auth/connect-requests (account_token) Host->>Site: verify device_token + live host_token (match immutable user.id) alt Same account & auto-connect enabled Host-->>Mobile: 201 Approved + DeviceCredential + 4-digit SAS code Host->>Host: Surface non-blocking SAS banner with one-click 断开 else Sign out on Desktop Host->>Host: revoke_account_linked_devices (disconnect LAN & relay) endKey fixes in this rebase:
mobile/ios/mobile/android) so CI checkout succeeds cleanly.20261118000000_connect_request_account.sqland20261118010000_connect_request_auto_approval.sqlto avoid colliding with upstream20261115010000_conversation_steering_delivery.sql.crates/server/src/account_link.rs): Always requires and live-verifieshost_token(rejecting stale cached__account_owner_v1records) and compares immutableuser.idfirst before falling back to case-insensitiveusername.7850c0a06unauthenticated connect-request protection,public_key_ed25519projection inlist_connect_requests, Ed25519 auto-approve guard, and offline idle reminder snooze cooldown inMobileDeviceConnectBanner.tsx.[I2]& contracts: Dropped out-of-scopecrates/conversationsSQL changes; regeneratedshared/hostCommands.tsand verifiedshared/types.ts+docs/protocol/v1/*.jsonare in sync.Evidence
CONFLICTING, failed 12/12 CI jobs on submodule checkout, had a duplicate migration timestamp20261115010000, and trusted cached owner username without livehost_tokenverification.node scripts/run-generate-types.js --check—shared/types.ts&shared/hostCommands.tsup to datenode scripts/remote-protocol-schema.js --check— verified remote protocol v1 artifactsnode scripts/check-arch-invariants.mjs—0violations across[I1]–[I5]pnpm --filter ./frontend exec tsc --noEmit&eslint --max-warnings 0— passedpnpm --filter ./frontend exec vitest run src/components/layout/MobileDeviceConnectBanner.test.tsx—11/11passedSQLX_OFFLINE=true cargo clippy -p remote-protocol -p db -p application -p server -p dimo --no-deps --all-targets -- -D warnings—0warningscargo test -p server --lib account_link—6/6passedcargo test -p server --lib host_console_pairing_tests—8/8passedcargo test -p server --test webrtc_security_and_session—5/5passedMerge Danger
Door: two-way (additive
ALTER TABLEcolumns and opt-out same-account auto-connect; reversible without data loss).Blast Radius: Low — scoped to device pairing/connect-request auth, host-sign-out revocation, pairing-code beacon publishing, and the desktop connect banner.